package com.ccc.boot.system.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
* 用户角色中间表
*
* @author superC
* @date 2022-03-31
* @version 0.1.0
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rel_user_role")
public class RelUserRole implements Serializable {

    private static final long serialVersionUID = 8877551131540155872L;

    /**
    * 用户ID(主键)
    */
    @TableId
    private Long userId;

    /**
    * 角色ID(主键)
    */
    @TableId
    private Long roleId;

}